	<script type="text/javascript" src="${root}assets/js/jquery.min.js"></script>
	<header class="mod-header__wrap" id="js_main_nav">
		<div
			class="mod-header mod-header_inner mod-header_inner-1200 clearfix">
			<div id="js-mod-header-login"
				class="mod-header__wrap-login mod-header__wrap-logined">
				<!--:if(!isEmpty(session.user)){  -->
				<!--:if(session.user.agency_id>0){  -->
				<div class="mod-header_wrap-user mod-header_wrap-user-org" style="display: block;"
					id="js_logout_outer_agency">
					<i class="icon-red-circle" style="display: none;"></i><img alt=""
						src="${www}${session.user.img!}" onerror="this.src='${root}/img/noimg.jpg'" class="mod-header__user-img js-avatar" width="40" height="40" />
					<p class="mod-header__user-name">
						<a href="${root}manage/"
							class="mod-header__user-operation" rel="nofollow"><b>机构管理</b><i
							class="icon-select-down"></i></a>
					</p>
					<ul class="mod-header__user-operations">
						<li class="mod-header__mailbox hide"><a
							href="${root}agency/mailbox"
							class="mod-header__user-operation" rel="nofollow">消息管理</a></li>
						<li><a href="${root}users/"
							class="mod-header__user-operation js-course-plan" rel="nofollow">个人中心</a></li>
						<li><a href="${root}users/orders"
							class="mod-header__user-operation js-course-plan" rel="nofollow">我的订单</a></li>
						<li><a href="${root}users/logout" data-hook="logout"
							class="js_logout mod-header__link-logout js-login-op">退出</a></li>
					</ul>
				</div>
				<!--:}else if(session.user.teacher_id>0){  -->
				<!--:}else{  -->
				<div class="mod-header_wrap-user" id="js_logout_outer" style="display: block;">
					<i class="icon-red-circle" style="display: none;"></i><img alt=""
						src="${www}${session.user.img! }" class="mod-header__user-img js-avatar" width="40" height="40" />
					<p class="mod-header__user-name">
						<a href="/users/"
							class="mod-header__user-operation" rel="nofollow">个人中心<i
							class="icon-select-down"></i></a>
					</p>
					<ul class="mod-header__user-operations">
						<li><a href="${root}users/"
							class="mod-header__user-operation js-live-course" rel="nofollow">课程表</a></li>
						<li><a href="${root}users/orders"
							class="mod-header__user-operation js-signup" rel="nofollow">全部订单</a></li>
						<li class="mod-header__mailbox hide"><a
							href="/agency/mailbox/index.html#sid=msg"
							class="mod-header__user-operation" rel="nofollow" >消息管理</a></li>
						<li><a href="${root}users/favorite"
							class="mod-header__user-operation js-fav" rel="nofollow">收藏</a></li>
						<li><a href="${root}users/coupon"
							class="mod-header__user-operation js-coupon" rel="nofollow">优惠券</a></li>
						<li class="js-et-course hide"><a
							href="/users/corp"
							class="mod-header__user-operation" rel="nofollow">企业培训课</a></li>
						<li><a href="${root}users/logout" data-hook="logout"
							class="js_logout mod-header__link-logout js-login-op">退出</a></li>
					</ul>
				</div>
				<!--:}  -->
				<!--:}else{  -->
				<a href="${root}login?goto=${req.requestURI!}" style="display: inline-block;" class="mod-header__link-login js-login-op" id="js_login" data-hook="login" rel="nofollow">登录</a>
				<a id="js-help" href="${root}faq.html" class="mod-header__link-help" report-tdw="action=click&amp;obj1=tab&amp;obj2=10&amp;module=navigation">帮助</a>
					<!--:}  -->
			</div>
			<div class="mod-header-logo" >
				<a href="${root}" class="mod-header__link-logo" title="心课堂_专业的在线心理教育平台">心课堂</a>
			</div>
			<ul class="mod-header__nav" id="js-mod-header-nav"
				auto-test="mod_header_nav">
				<li class="mod-header__nav-item"><a href="${root}"
					class="mod-header__link-nav">首页</a></li>
				<li class="mod-header__nav-item"><a
					href="${root}course/" class="mod-header__link-nav"
					report-tdw="action=click&obj1=tab&obj2=3&module=navigation">课程</a></li>
				<li class="mod-header__nav-item"><a
					href="${root}combo/"
					class="mod-header__link-nav"
					report-tdw="action=click&obj1=tab&obj2=4&module=navigation">精选合辑</a></li>
				<li class="mod-header__nav-item"><a
					href="${root}zan/" class="mod-header__link-nav" >攒课</a></li>
			</ul>
			<div class="mod-header__wrap-search" id="js-searchbox"
				auto-test="mod_search">
				<form id="form1" action="${root}search" method="get">
				<div class="mod-search">
					<a class="mod-search-dropdown"><span
						class="mod-search-dropdown-item mod-search-dropdown-item-selected"
						data-key="搜索课程" data-type="course">课程<i></i></span><span
						class="mod-search-dropdown-item" style="display: none;"
						data-key="搜索讲师" data-type="teacher">讲师<i></i></span><span
						class="mod-search-dropdown-item" style="display: none;"
						data-key="搜索机构" data-type="agency">机构<i></i></span></a>
						<input type="hidden" id="js_type" name="type" value="course" />
						<input name="key" type="text" id="js_keyword" maxlength="38" class="mod-search__input" placeholder="搜索课程">
						<a id="js_header_clear" href="javascript:void(0)" class="mod-search__btn-clear" title="清空"></a>
						<button id="js_search" style="padding: 0px;"
						class="mod-search__btn-search"><i
						class="icon-search"></i></button>
				</div>
				</form>
			</div>
		</div>
	</header>
	<script>
	var show=0;
	$(function(){
		$(".mod-search-dropdown-item").click(function(){
			$(".mod-search-dropdown-item").css("display","block");
			if(show==0){
				show=1;
				return;				
			}
			$(".mod-search-dropdown-item").removeClass("mod-search-dropdown-item-selected");
			//$(".mod-search-dropdown-item")[0].addClass("mod-search-dropdown-item-selected");
			if($(this).hasClass("mod-search-dropdown-item-selected")){
				$(".mod-search-dropdown-item").css("display","none");
				$(this).css("display","block");
			}else{
				$(".mod-search-dropdown-item").css("display","none");
				
				$(this).css("display","block");
				$(this).addClass("mod-search-dropdown-item-selected")
			}
			$("#js_keyword").attr("placeholder",$(this).attr("data-key"))
			show=0;
			$("#js_type").val($(this).attr("data-type"))
		})
	})
	</script>